package com.shushan.home.bean;

import com.android.net.bean.NetBaseBean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @ClassName: StarsDataBean
 * @Desciption: //星星商城列表条目信息bean
 * @author: zhangshihao
 * @date: 2018-05-11
 */
public class StarsDataBean extends NetBaseBean {

    public int id;
    public String goods_name;//商品名
    public int stars;//兑换商品需要的星星数
    public double price;//购买商品需要的钱数
    public String goods_cover;//商品图片url
    public String goods_describe;//商品描述

    @Override
    public void initByJson(JSONObject jsonObject) throws JSONException {
        id = jsonObject.optInt("id",-1);
        goods_name = jsonObject.optString("goods_name","");
        stars = jsonObject.optInt("stars",0);
        price = jsonObject.optDouble("price",0);
        goods_cover = jsonObject.optString("goods_cover","");
        goods_describe = jsonObject.optString("goods_describe","");
    }
}
